package com.mano.mall.common.constants;

public interface Constants {
	// 响应请求成功
	String HTTP_RES_CODE_200_VALUE = "success";
	// 系统错误
	String HTTP_RES_CODE_500_VALUE = "fial";
	// 响应请求成功code
	Integer HTTP_RES_CODE_200 = 200;
	// 系统错误
	Integer HTTP_RES_CODE_500 = 500;
	// 未关联QQ账号
	Integer HTTP_RES_CODE_201 = 201;
	// 401 访问权限不足
	Integer HTTP_NOT_AUTH=401;


	// access_token 没有
	Integer HTTP_NO_ACCESS_TOKEN=401;
	// 手机号码已存在
	Integer HTTP_RES_CODE_NOT_EXISTMOBILE_202 = 202;
	// 用户信息不存在
	Integer HTTP_RES_CODE_NOTUSER_203 = 203;
	// 发送邮件
	String MSG_EMAIL = "email";
	// 会员token
	String TOKEN_MEMBER = "TOKEN_MEMBER";
	// 用户有效期 90天
	Long TOKEN_MEMBER_TIME = (long) (60 * 60 * 24 * 90);
	int COOKIE_TOKEN_MEMBER_TIME = (60 * 60 * 24 * 90);
	// cookie 会员 totoken 名称
	String COOKIE_MEMBER_TOKEN = "cookie_member_token";
	// 微信注册码存放rediskey
	String WEIXINCODE_KEY = "weixin.code";
	// 微信注册码有效期30分钟
	Long WEIXINCODE_TIMEOUT = 1800l;

	short COMMON_STATUS_VAILD = 1;
	short COMMON_STATUS_INVALID = 0;
}
